<template>
    <div class="ipx-block-wrap" v-show="show"></div>
</template>

<script>
    export default {
        name: "IPX-BLOCK",
        data() {
            return {
                show: false
            }
        },
        watch: {
            $route: {
                handler() {
                    if (window.__wxjs_environment === 'miniprogram') {
                        return true
                    }
                    if (this.$utils.browser.isWx && window.history.length === 1) {
                        this.show = true
                    } else {
                        this.show = false
                    }
                },
                deep: false,
                immediate: true
            }
        },
        created() {
        },
        methods: {},
    }
</script>

<style lang="scss">
    .ipx-block-wrap {
        height: 0;
        flex: 1;
        width: 100%;
        @media only screen and (device-width: 375px) and (device-height: 812px) and(-webkit-device-pixel-ratio: 3) {
            height: 34PX; /*no*/
        }
    }
</style>
